Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stdlib] Add Indexer trait #2685

Closed
wants to merge 1 commit into from
Closed

Conversation

bgreni
Copy link
Contributor

@bgreni bgreni commented May 16, 2024

First half of the split off from #2384.
Partially addresses #2337

Introduces the Indexer trait and applies to Int, IntLiteral, Bool, and integral scalar SIMD types.

@bgreni bgreni requested a review from a team as a code owner May 16, 2024 18:50
@bgreni bgreni changed the title Add Indexer trait [stdlib] Add Indexer trait May 16, 2024
Copy link
Contributor

@laszlokindrat laszlokindrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for splitting this out!

stdlib/src/builtin/value.mojo Outdated Show resolved Hide resolved
stdlib/test/builtin/test_int_literal.mojo Outdated Show resolved Hide resolved
stdlib/src/builtin/simd.mojo Outdated Show resolved Hide resolved
stdlib/src/builtin/simd.mojo Outdated Show resolved Hide resolved
stdlib/test/builtin/test_bool.mojo Show resolved Hide resolved
@laszlokindrat
Copy link
Contributor

And please add a changelog entry!

Signed-off-by: Brian Grenier <grenierb96@gmail.com>
@laszlokindrat laszlokindrat added the imported-internally Signals that a given pull request has been imported internally. label May 16, 2024
@modularbot
Copy link
Collaborator

✅🟣 This contribution has been merged 🟣✅

Your pull request has been merged to the internal upstream Mojo sources. It will be reflected here in the Mojo repository on the nightly branch during the next Mojo nightly release, typically within the next 24-48 hours.

We use Copybara to merge external contributions, click here to learn more.

@modularbot modularbot added merged-internally Indicates that this pull request has been merged internally merged-externally Merged externally in public mojo repo labels May 16, 2024
@modularbot
Copy link
Collaborator

Landed in f923e94! Thank you for your contribution 🎉

modularbot pushed a commit that referenced this pull request May 17, 2024
[External] [stdlib] Add Indexer trait

First half of the split off from #2384.
Partially addresses #2337

Introduces the `Indexer` trait and applies to `Int`, `IntLiteral`,
`Bool`, and integral scalar `SIMD` types.

---------

Co-authored-by: bgreni <42788181+bgreni@users.noreply.github.com>
Closes #2685
MODULAR_ORIG_COMMIT_REV_ID: 224c700e9ff9b28abf9e7d72ff3b3271d7e9de09
@modularbot modularbot closed this May 17, 2024
msaelices pushed a commit to msaelices/mojo that referenced this pull request May 18, 2024
[External] [stdlib] Add Indexer trait

First half of the split off from modularml#2384.
Partially addresses modularml#2337

Introduces the `Indexer` trait and applies to `Int`, `IntLiteral`,
`Bool`, and integral scalar `SIMD` types.

---------

Co-authored-by: bgreni <42788181+bgreni@users.noreply.github.com>
Closes modularml#2685
MODULAR_ORIG_COMMIT_REV_ID: 224c700e9ff9b28abf9e7d72ff3b3271d7e9de09
martinvuyk pushed a commit to martinvuyk/mojo that referenced this pull request May 24, 2024
[External] [stdlib] Add Indexer trait

First half of the split off from modularml#2384.
Partially addresses modularml#2337

Introduces the `Indexer` trait and applies to `Int`, `IntLiteral`,
`Bool`, and integral scalar `SIMD` types.

---------

Co-authored-by: bgreni <42788181+bgreni@users.noreply.github.com>
Closes modularml#2685
MODULAR_ORIG_COMMIT_REV_ID: 224c700e9ff9b28abf9e7d72ff3b3271d7e9de09
modularbot pushed a commit that referenced this pull request Jun 7, 2024
[External] [stdlib] Add Indexer trait

First half of the split off from #2384.
Partially addresses #2337

Introduces the `Indexer` trait and applies to `Int`, `IntLiteral`,
`Bool`, and integral scalar `SIMD` types.

---------

Co-authored-by: bgreni <42788181+bgreni@users.noreply.github.com>
Closes #2685
MODULAR_ORIG_COMMIT_REV_ID: 224c700e9ff9b28abf9e7d72ff3b3271d7e9de09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
imported-internally Signals that a given pull request has been imported internally. merged-externally Merged externally in public mojo repo merged-internally Indicates that this pull request has been merged internally
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants